package multiThread.assignment;

public class FileStringSearch {

	public static void main(String[] args) {
		if (args.length != 4) {
			System.out.println("Insufficient arguments.");
			System.exit(0);
		}

		StringSearch obj = new StringSearch(args[0], args[1], args[2], args[3]);

		Thread t1 = new Thread(obj, "First Thread");
		Thread t2 = new Thread(obj, "Second Thread");
		Thread t3 = new Thread(obj, "Third Thread");
		Thread t4 = new Thread(obj, "Fourth Thread");

		t1.start();
		t2.start();
		t3.start();
		t4.start();
	}
}
